/**
 * 
 */
package com.estock.common.model.security;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.Table;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;

/**
 * @author richard
 *
 */
@Entity
@Table(name="RealTimeIndex")
@Cache(usage=CacheConcurrencyStrategy.READ_WRITE)
public class RealTimeIndex extends BaseEntity {

	private static final long serialVersionUID = -2259146919534801703L;
	
	private String code;

	private Date dateTime;
	
	private double marketIndex;
	
	private double price;
	
	private double increaseRate;
	
	private long volumeSum;
	
	private long turnOver;
	
	public RealTimeIndex(){
	}
	
	public RealTimeIndex(String code){
		this.code = code;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public Date getDateTime() {
		return dateTime;
	}

	public void setDateTime(Date dateTime) {
		this.dateTime = dateTime;
	}

	public double getMarketIndex() {
		return marketIndex;
	}

	public void setMarketIndex(double marketIndex) {
		this.marketIndex = marketIndex;
	}

	public double getPrice() {
		return price;
	}

	public void setPrice(double price) {
		this.price = price;
	}

	public double getIncreaseRate() {
		return increaseRate;
	}

	public void setIncreaseRate(double increaseRate) {
		this.increaseRate = increaseRate;
	}

	public long getVolumeSum() {
		return volumeSum;
	}

	public void setVolumeSum(long volumeSum) {
		this.volumeSum = volumeSum;
	}

	public long getTurnOver() {
		return turnOver;
	}

	public void setTurnOver(long turnOver) {
		this.turnOver = turnOver;
	}

}
